﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

namespace jnagr.BLL
{
    public class PagedHelper
    {
        /// <summary>
        /// 分页获取数据列表
        /// </summary>
        /// <param name="PageSize">页尺寸</param>
        /// <param name="PageIndex">页码</param>
        /// <param name="fldName">字段名</param>
        /// <param name="OrderType">设置排序类型, 非 0 值则降序</param>
        /// <param name="strWhere">查询条件 (注意: 不要加 where)</param>
        /// <returns></returns>
        public static DataSet GetList(string tblName, int PageSize, int PageIndex, string fldName, string OrderType, string strWhere)
        {
            return DAL.PagedHelper.GetList(tblName, PageSize, PageIndex, fldName, OrderType, strWhere);
        }
    }
}